using System;

namespace ContentmanagementBase.Domain
{
    /// <summary>
    /// 所有领域实体的基类
    /// </summary>
    public abstract class BaseEntity
    {
        /// <summary>
        /// 实体唯一标识符
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 实体创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 实体最后更新时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }

        /// <summary>
        /// 创建者标识符
        /// </summary>
        public int CreatedBy { get; set; }

        /// <summary>
        /// 最后更新者标识符
        /// </summary>
        public int UpdatedBy { get; set; }

        /// <summary>
        /// 表示实体是否已删除（软删除）
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
} 